<h2><%= 'Editing Profile'.t %></h2>

<p>Editing volunteer profile for: <strong><%= @user_to_edit.username -%></strong></p>
<%= error_messages_for 'user_to_edit' -%>

<div class="sandbox">
	<h3><%= "Basic Info".t -%></h3>
<% form_for :user_to_edit do |form| -%>
	<dl>
		<% if get_user.is_volcom -%>
			<%= render :partial => 'user_permissions_form_body', :locals => {:form => form} %>
		<% end -%>
		
		<dt><label for="password"><%= "New Password".t -%></label></dt>
		<dd><%= form.password_field :password, 
                    :size => User::PASSWORD_SIZE,
                    :maxlength => User::PASSWORD_MAX_LENGTH %></dd>
	

		<dt><label for="current_password"><%= "Current Password".t -%></label></dt>
		<dd><%= form.password_field :current_password, 
                    :size => User::PASSWORD_SIZE,
                    :maxlength => User::PASSWORD_MAX_LENGTH %></dd>
		
		<dt><label for="email"><%= "Email".t -%></label></dt>
		<dd><%= form.text_field :email, 
								:size => User::EMAIL_SIZE,
								:maxlength => User::EMAIL_MAX_LENGTH %></dd>
	

		<%= render :partial => 'user_info_form_body', :locals => {:form => form} -%>
	
		<dt><!-- submit --></dt>
		<dd><%= submit_tag 'Save Profile'.t, :class=> 'submit' %></dd>		
	</dl>
<% end -%>
<hr class="clear" />
</div>
<div class="sandbox">
	<h3><%= "Links".t -%></h3>
<%= render :partial => '/userlink/edit', :locals => { :user_to_edit => @user_to_edit } -%>
	<hr class="clear" />
</div>
<div class="sandbox">	
<!-- skill editing -->	
	<h3><%= "Skills".t -%></h3>	
<% form_remote_tag :url => { :controller => :user, :action => :edit_skills, :id => @user_to_edit.id } do %>
<%= render :partial => '/skill/edit', :locals => { :skilled => @user_to_edit } %>
<%= submit_tag 'Save Skills'.t, :class=> 'submit' %>
<% end -%>
	<hr class="clear" />
</div>

